package com.myjava.thread;

/**
 * @auther: tao
 * @date: 2018/9/21 10:24
 * @description: 继承 Thread 类
 */
public class ThreadDemo02 {
    public static void main(String args[]) {
        // 实例化对象
        MyThread2 mt1 = new MyThread2("线程A ");
        // 实例化对象
        MyThread2 mt2 = new MyThread2("线程B ");
        mt1.run();   // 调用线程主体
        mt2.run();    // 调用线程主体

    }
}